#pragma once
#include "SNBasePaintWnd.h"
#include <vector>


class CFileListHeadWnd	:	public CWnd
	,	public CSNBasePaintWnd
{
public:
	CFileListHeadWnd(void);
	virtual ~CFileListHeadWnd(void);
	DECLARE_DYNCREATE(CFileListHeadWnd)
	BOOL Create(const RECT& rect, CWnd* pParentWnd, UINT nID);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg LRESULT OnMouseLeave(WPARAM wparam, LPARAM lparam);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	
	DECLARE_MESSAGE_MAP()
private:
	void	ReSize();
	S_ColHead* GetMouseOnHead(CPoint aoPoint);
	int								m_iCurrentHead;
	S_ColHead*						m_pCurrentHead;
	std::vector<S_ColHead*>			m_oHeadVector;

};
